#include <iostream>
using namespace std;

typedef struct{
 int data[101];
 int length;
}SqList;

int main(){
 int n, x, m;
 cin >> n;
 SqList *L;
 L = new SqList;
 for(int i = 0; i < n; i++){
  cin >> x;
  L->data[i] = x;
 }
 L->length = n;
 cin >> m;
 int ans = 0;
 for(int i = 0; i < L->length;i++){
  if(L->data[i] == m)
   ans++;
 }
 cout << ans <<endl;
}
